package com.tudouji.project.bill.mapper;

import com.tudouji.project.bill.domain.Whoutform;

import java.util.List;

/**
 * 出库单Mapper接口
 *
 * @author wf
 * @date 2021-01-12
 */
public interface WhoutformMapper
{
    /**
     * 查询出库单
     *
     * @param autoid 出库单ID
     * @return 出库单
     */
    public Whoutform selectWhoutformById(Long autoid);

    /**
     * 查询出库单列表
     *
     * @param whoutform 出库单
     * @return 出库单集合
     */
    public List<Whoutform> selectBaseWhoutformList(Whoutform whoutform);
    public List<Whoutform> selectWhoutformList(Whoutform whoutform);

    /**
     * 新增出库单
     *
     * @param whoutform 出库单
     * @return 结果
     */
    public int insertWhoutform(Whoutform whoutform);

    /**
     * 修改出库单
     *
     * @param whoutform 出库单
     * @return 结果
     */
    public int updateWhoutform(Whoutform whoutform);
    public int updateWhoutformGuid(Whoutform whoutform);

    /**
     * 删除出库单
     *
     * @param autoid 出库单ID
     * @return 结果
     */
    public int deleteWhoutformById(Long autoid);

    /**
     * 批量删除出库单
     *
     * @param autoids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWhoutformByIds(Long[] autoids);

    /**
     * 出库单列表查询
     *
     */
    public List<Whoutform> findWhoutformList(Whoutform whoutform);

    List<Whoutform> findDetail(Whoutform whoutform);

    Whoutform findWhoutPrint(Long id);

    public Whoutform selectWhoutformByOrderId(String orderId);

    public List<Whoutform> selectWhoutformsHistory();

    public Whoutform selectWhoutformByGuid(String guid);

    public Double getSumweight(Whoutform outform);

}
